# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='CartTable',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('Cert_amount', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='MerchTable',
            fields=[
                ('Merch_id', models.CharField(primary_key=True, max_length=100, serialize=False)),
                ('Merch_name', models.CharField(max_length=100)),
                ('Merch_img', models.ImageField(upload_to='')),
                ('Merch_tag', models.CharField(max_length=100)),
                ('Merch_price', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='OrderTable',
            fields=[
                ('Order_id', models.CharField(primary_key=True, max_length=100, serialize=False)),
                ('Order_date', models.DateTimeField(auto_now=True)),
                ('Order_amount', models.IntegerField(default=0)),
                ('Order_mid', models.ForeignKey(to='app.MerchTable')),
            ],
        ),
        migrations.CreateModel(
            name='ShopTable',
            fields=[
                ('Shop_id', models.CharField(primary_key=True, max_length=100, serialize=False)),
                ('Shop_name', models.CharField(max_length=100)),
                ('Shop_address', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='UserTable',
            fields=[
                ('User_id', models.CharField(primary_key=True, max_length=100, serialize=False)),
                ('User_psw', models.CharField(max_length=100)),
                ('User_name', models.CharField(max_length=100)),
                ('User_phone', models.CharField(max_length=100)),
                ('User_address', models.CharField(max_length=100)),
            ],
        ),
        migrations.AddField(
            model_name='ordertable',
            name='Order_sid',
            field=models.ForeignKey(to='app.ShopTable'),
        ),
        migrations.AddField(
            model_name='ordertable',
            name='Order_uid',
            field=models.ForeignKey(to='app.UserTable'),
        ),
        migrations.AddField(
            model_name='merchtable',
            name='Merch_sid',
            field=models.ForeignKey(to='app.ShopTable'),
        ),
        migrations.AddField(
            model_name='carttable',
            name='Cert_mid',
            field=models.ForeignKey(to='app.MerchTable'),
        ),
        migrations.AddField(
            model_name='carttable',
            name='Cert_sid',
            field=models.ForeignKey(to='app.ShopTable'),
        ),
        migrations.AddField(
            model_name='carttable',
            name='Cert_uid',
            field=models.ForeignKey(to='app.UserTable'),
        ),
    ]
